import Cart from '@/views/cart.vue'
import Cla from '@/views/cla.vue'
import Home from '@/views/home.vue'
import Index from '@/views/index.vue'
import My from '@/views/my.vue'
import Taix from '@/views/taix.vue'
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home/index' },
    {
      path: '/home', name: 'home', component: Home, children: [
        { path: 'cart', name: 'cart', component: Cart },
        { path: 'cla', name: 'cla', component: Cla },
        { path: 'index', name: 'index', component: Index },
        { path: 'my', name: 'my', component: My },
        { path: 'taix', name: 'taix', component: Taix },
      ]
    },
  ],
})

export default router
